package com.pxmeta.skill.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 服务表
 * </p>
 *
 * @author wcl
 * @since 2022-06-25
 */
@TableName("kt_skill")
@ApiModel(value = "技能", description = "技能表")
@Data
public class Skill implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("服务名称")
    private String name;

    @ApiModelProperty("图标")
    private String icon;

    @ApiModelProperty("技能类型")
    private Integer type;

    @ApiModelProperty("技能分类")
    private Integer category;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("服务单位")
    private String unit;

    @ApiModelProperty("服务描述")
    private String description;

    @ApiModelProperty("是否热门")
    private Boolean isHot;

    @ApiModelProperty("审核状态")
    @TableField(exist = false)
    private Integer status;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
